
using System;
using System.Runtime.Serialization;

namespace ICIA.ARojas.Silverlight.Entities
{
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]    
    [System.Runtime.Serialization.DataContractAttribute(Name = "CursoRealizado", Namespace = "http://schemas.datacontract.org/2004/07/ICIA.ARojas.AccesoDatos.Entidades")]
	[System.Runtime.Serialization.KnownTypeAttribute(typeof(ICIA.ARojas.Silverlight.Entities.CursoRealizado))]
	public partial class CursoRealizado : object, System.ComponentModel.INotifyPropertyChanged
	{
        #region Private Members
		
       private Curso CursoField;
       private Persona PersonaField;
       private int IdField;
       private DateTime? FechaRealizacionField;
       private string DescripcionField;
	
		#endregion
		
		#region constructor		
		public CursoRealizado()
		{
		}
		#endregion
		
		#region Public Properties
		

        [System.Runtime.Serialization.DataMemberAttribute()]
        public Curso Curso 
        {
            get 
            {
                return this.CursoField;
            }
            set 
            {
                    this.CursoField = value;
                    this.RaisePropertyChanged("Curso");
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public Persona Persona 
        {
            get 
            {
                return this.PersonaField;
            }
            set 
            {
                    this.PersonaField = value;
                    this.RaisePropertyChanged("Persona");
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public int Id 
        {
            get 
            {
                return this.IdField;
            }
            set 
            {
                    this.IdField = value;
                    this.RaisePropertyChanged("Id");
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public DateTime? FechaRealizacion 
        {
            get 
            {
                return this.FechaRealizacionField;
            }
            set 
            {
                    this.FechaRealizacionField = value;
                    this.RaisePropertyChanged("FechaRealizacion");
            }
        }

        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Descripcion 
        {
            get 
            {
                return this.DescripcionField;
            }
            set 
            {
                    this.DescripcionField = value;
                    this.RaisePropertyChanged("Descripcion");
            }
        }
		
		#endregion 	
		
		public override string ToString()
        {
		    //Aqui pueden cambiar el return a por ejemplo la concatenacion de propiedades			
            return "Entity : "+Id.ToString();
        }
		
		#region INotifyPropertyChanged
		public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
        protected void RaisePropertyChanged(string propertyName)
        {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null))
            {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
		#endregion

	}
}

